﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace DAIVIETPROJECT
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            bool flag = false;//co kiem tra dang nhap 
            bool exit = false;//co kiem tra nguoi dung muon thoat khoi chuong trinh

            MODULE_QUANTRIHETHONG.frm_startup frm = new MODULE_QUANTRIHETHONG.frm_startup();

            frm.Show();
            MODULE_QUANTRIHETHONG.frm_login frmlg = new MODULE_QUANTRIHETHONG.frm_login();
            frmlg.Show();
            frmlg.MdiParent = frm;
            bool blogin = frmlg.flag;
            //if (flag)
            //{
            //    frm.Close();
            //}
            //do
            //{
                
            //    cls.ShowForm("frm_login");
            //    flag = cls._bdangnhap;
            //    exit = cls._bexit;
            //}
            //while (flag == false && exit == false);
            //if (exit == false)
            //{
            //    MODULE_QUANTRIHETHONG.frm_main main = new MODULE_QUANTRIHETHONG.frm_main();
            //    main._tendangnhap = cls._tendangnhap;
               
            //    frm.Close();
            //    main.Show();
                
            //}
            //else
            //{
            //    Application.Exit();
            //}

            Application.Run(); 

          
           
          
         
           
            
        }
    }
}
